package io.renren.modules.gengyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.gengyun.entity.IndicatorEntity;
import io.renren.modules.gengyun.entity.spare.CycleOfIndicator;
import io.renren.modules.gengyun.entity.spare.IndicatorShow;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author
 * @email
 * @date 2020-09-17 20:31:48
 */
public interface IndicatorService extends IService<IndicatorEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<IndicatorShow> indicatorShows(String cropsRotationPlotId);

    List<IndicatorShow> findByIndicatorIdAndCropRotationId(String cropsRotationPlotId, String IndicatorId, Long beginTime, Long endTime);

//    Map<String, Double> getCycleOfIndicatorsByCropRotationId(String cropsRotationPlotId, Long beginTime,Long endTime);

    List<Map> getIndicatorsByTime(String cropsRotationPlotId,
                                  String indicatorType,
                                  Long beginTime,
                                 Long endTime);

//    Map<String,List<IndicatorShow>> CompareIndicatorIdAndCropRotationId(String cropsRotationPlotId, String IndicatorId, String beginTime, String endTime) throws ParseException;

    List<Map<String,Object>> compareAllYearsDataByTargetName(String cropsRotationPlotId, String targetName, Long beginTime, Long endTime);

//    Map<String,List<IndicatorShow>> CompareAllYearsDataByTargetName(String cropsRotationPlotId, String targetName, Long beginTime, Long endTime);

    List<String> getCropRotationId();

}

